  <% unless @user.schools.empty? %>
    <h4>Education</h4>
    <ul>
      <% @user.schools.each do |school| %>
        <li><%=h school.degree.name %>, <%=h school.name %> <%=h year(school.start_date) %>-<%=h year(school.end_date) %></li>
      <% end %>
    </ul>
  <% end %>

  <% unless @user.jobs.empty? %>
    <h4>Jobs</h4>
    <ul>
        <% @user.jobs.each do |job| %>
          <li><%=h job.position %> at <%= job.institution %> from <%=h month_year(job.start_date) %> to <%=h month_year(job.end_date) %></li>
        <% end %>
    </ul>
  <% end %>

  <% if @user.document %>
    <h4>Vitae</h4>
    <ul>
      <% if @user.document %>
        <li><%= link_to 'Download Vitae', @user.document.public_filename %></li>
      <% end %>
    </ul>
  <% end %>

  <% unless @user.about.blank? %>
    <div class="profile-box">
      <h4>About</h4>
      <%= white_list(simple_format(@user.about)) %>
    </div>
  <% end %>
  
  <% unless @user.current_research.blank? %>
    <div class="profile-box">
      <h4>Current Research</h4>
      <%= white_list(simple_format(@user.current_research)) %>
    </div>
  <% end %>

  <% unless @user.subject_expertise.blank? %>
    <div class="profile-box">
      <h4>Subject Expertise</h4>
      <%= white_list(simple_format(@user.subject_expertise)) %>
    </div>
  <% end %>

  <% unless @user.courses_taught.blank? %>
    <div class="profile-box">
      <h4>Courses Taught</h4>
      <%= white_list(simple_format(@user.courses_taught)) %>
    </div>
  <% end %>

  <% unless @user.publications.blank? %>
    <div class="profile-box">
      <h4>Publications</h4>
      <%= white_list(simple_format(@user.publications)) %>
    </div>
  <% end %>

  <% unless @user.organizations.blank? %>
    <div class="profile-box">
      <h4>Organizations</h4>
      <%= white_list(simple_format(@user.organizations)) %>
    </div>
  <% end %>

  <% unless @user.outside_interests.blank? %>
    <div class="profile-box">
      <h4>Outside Interests</h4>
      <%= white_list(simple_format(@user.outside_interests)) %>
    </div>
  <% end %>

